﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MLGest.Models.LogInModel>" %>


<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    MLGest - Version <%: ViewBag.VersionServicio %> - Regístrese
</asp:Content>



<asp:Content ID="content3" ContentPlaceHolderID="HeaderTitleContent" runat="server">
    <h2><%: ViewBag.HeaderTitle %></h2>
</asp:Content>

<asp:Content ID="content4" ContentPlaceHolderID="ErrorMensajeContent" runat="server">
    <% if(Convert.ToBoolean(ViewData["loginError"]))
       { %>
            <table align="center" width="300px" style="border-style:solid; border-color: Blue; border-width:1; background-color:Black; margin-left:520px; margin-top:400px; ">
            <tr><td height="20px"></td></tr>
            <tr>
            <% if(Convert.ToBoolean(ViewData["loginErrorTypeError"]))
                { %>
                <td width="100px" align="center" valign="middle"><img src="../../Content/images/bullet_error.png" /></td>
            <% } %> 
            
            <% else if(Convert.ToBoolean(ViewData["loginErrorTypeOk"]))
                { %>    
                <td width="100px" align="center" valign="middle"><img src="../../Content/images/bullet_accept.png" /></td>
            <% } %> 
                <td align="center" onclick="cerrarMensajes();" style="font-family:Eurostile; color:Blue; font-size:medium;">
                        <%: ViewBag.ErrorAMostrar %>
                </td>
            </tr>
            <tr><td height="20px"></td></tr>
            </table>
    <% } %>       
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
     <% using( Html.BeginForm()) { %>


    <!--
       <div id="menucontainer">
            
                <ul id="menu">              
                    <li><%: Html.ActionLink("Home", "Index", "Home")%></li>
                    <li><%: Html.ActionLink("About", "About", "Home")%></li>
                </ul>
            
            </div>
            -->

           
           <div id="BodyLogin" runat=server>
          <table width="100%" style="background-color:Black">       
             <tr>
             <td align=center>
                <table width=50% style="margin-top:200px; margin-bottom:200px; border-color:Blue; border-width:1px; border-style:groove">
                    <tr>
                    <td colspan=3 style="height:5px">                    </td>
                    </tr>
                    <tr>
                    <td colspan=3 align=center>Regístrese, por favor</td>
                    </tr>
                    <tr>
                    <td colspan=3 style="height:20px">                    </td>
                    </tr>
                    <tr>
                        <td width="80px" rowspan="3" align="center" valign="middle"><img src="../../Content/images/maps.png" /></td>
                        <td align=right>
                         <%: Html.LabelFor(m => m.strUsuario) %>
                        </td>                                           
                        <td align=left>
                        <%: Html.TextBoxFor(m => m.strUsuario, new { style=ViewBag.strEstiloGeneral})%>
                        </td>
                    </tr>
                    <tr>
                        <td align=right>
                         <%: Html.LabelFor(m => m.strPassword) %>
                 
                        </td>                                           
                        <td align=left>
                        <%: Html.EditorFor(m => m.strPassword, new { style = ViewBag.strEstiloGeneral })%>
                        </td>
                    </tr>                    
                    <tr>
                           <td colspan=2 style="height:5px"></td>
                    </tr>                    
                    <tr>
                        <td colspan=3 align="center">
                           <input type="submit" name="strButtons" value="Registrarse" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan=3 align=center style="height:5px"></td>
                    </tr>
                </table>
             </td>
            </tr>
          
            
            
            </table>
            </div>
           <% } %>
         

</asp:Content>
